<?php

namespace ApiWF\Model;
use Think\Model\ViewModel;

class UserMessagesViewModel extends ViewModel {

    public $viewFields = array(
        'UserMessages'=>array('*'),
        'Messages'=>array('title','body','image', '_on'=>'Messages.id=UserMessages.message_id'),
    );
}